

<?php
        $xcrud = Xcrud::get_instance();
        $xcrud->table('comment');
  $xcrud->columns('id,tieude,content,user', false);
              
        // hide fields
        //$xcrud->fields('avatar,ngaysinh', true);
              // hide columns
        //  $xcrud->columns('password',true);
      
      
      //------- GRIDVIEW MODE ---------
      
   
        
        //---------ADD /EDIT MODE----------
       
       //Display field in edit/add mode with tab
       //Hide hash and password if user not admin group in add/edit mode :
                //  $xcrud->fields('password,hash', true);

                  
      
      //----------VIEW MODE-----------
      // Display field in view mode
            //      $xcrud->fields('username,email,avatar,level,danhhieu,chuky,register_day,last_login', false, 'Personal','view');
                 
              



		$xcrud->unset_add();
        $xcrud->unset_csv();
        $xcrud->unset_print();
$xcrud->show_primary_ai_column(true);
        $xcrud->theme('bootstrap');
       $xcrud->table_name('Comment');
        
        echo $xcrud->render();

?>
